import request from '@/utils/request'

export function getStudentList(data) {
  return request({
    url: '/student/list',
    method: 'post',
    data
  })
}

export function saveStudent(data) {
  return request({
    url: '/student',
    method: 'post',
    data
  })
}

export function updateStudent(data) {
  return request({
    url: '/student',
    method: 'put',
    data
  })
}

export function deleteStudent(id) {
  return request({
    url: `/student/${id}`,
    method: 'delete'
  })
}

export function batchDeleteStudent(ids) {
  return request({
    url: '/student/batch',
    method: 'delete',
    data: ids
  })
} 